<?php
namespace app\serverfund\service\fund;

use \app\manage\service\ApiBase;
/**
 * 用户的资金还款日志
 * @author adv30 <adv30@126.com> 2017年6月22日10:24:27
 */
class FundRefundLog extends ApiBase
{
    protected $fundRefundLogValidate = '\app\serverfund\validate\FundRefundLog';
    protected $fundRefundLogLogic = '\app\serverfund\logic\FundRefundLog';
    // 获取所资金还款日志(分页)
    public function list(): array
    {
        $data = $this->haveIssetReceiveData(['page'=>'1', 'list_rows'=>'']);
        return $this->oneStepRun($data, 'serverfund/fund/FundRefundLog/list', 'list');
    }
    // 获取某些user_ids的的资金还款日志(分页)
    public function listByUserIds(): array
    {
        $data = $this->haveIssetReceiveData(['page'=>'1', 'list_rows'=>'', 'user_ids'=>' ']);
        return $this->oneStepRun($data, 'serverfund/fund/FundRefundLog/listByUserIds', 'listByUserIds');
    }
    // 获取某个借款日志的资金还款日志
    public function listByBorrowId(): array
    {
        $data = $this->haveIssetReceiveData(['borrow_log_id'=>'0']);
        return $this->oneStepRun($data, 'serverfund/fund/FundRefundLog/listByBorrowId', 'listByBorrowId');
    }
}